﻿using System;
using System.Windows.Data;

namespace Eniux.Windows.Controls.Core.Converters
{
    public class FindKeyInResConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
    //public class FindKeyInResConverter : IMultiValueConverter
    //{
    //    #region IMultiValueConverter Members
    //    public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
    //    {
    //        //values[0] is emapsedTime
    //        //values[1] is totalduration
    //        string value = values[0].ToString();
    //        return Application.Current.Resources.FindName("SysCloseBtn_MouseOver_Background");
    //    }
    //    public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
    //    {
    //        throw new NotImplementedException();
    //    }
    //    #endregion
    //}

   //public class KeyConverter : ExpandableObjectConverter
   //{
   //    public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
   //    {
   //        if (sourceType == typeof(string))
   //            return true;
   //        return base.CanConvertFrom(context, sourceType);
   //    }

   //    public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
   //    {
   //        if (value is string)
   //        {
   //            new ComponentResourceKey() { };
   //        }
   //        return base.ConvertFrom(context, culture, value);
   //    }

   //    public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
   //    {
   //        return base.ConvertTo(context, culture, value, destinationType);
   //    }
   //}
}
